package com.fzn.web.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.filter.HiddenHttpMethodFilter;

/**
 * @program: spring-boot
 * 描述：
 * @author: fzn
 * @create: 2022-03-08 18:07
 **/
@Configuration(proxyBeanMethods = false)
public class WebConfig {
    /**
     * 覆盖 put等请求的隐藏的 _method 变成 _m
     * @return
     */
    // @Bean
    // public HiddenHttpMethodFilter hiddenHttpMethodFilter() {
    //     HiddenHttpMethodFilter methodFilter = new HiddenHttpMethodFilter();
    //     methodFilter.setMethodParam("_m");
    //     return methodFilter;
    // }
}